package com.lins.framework.ui.home.product;

import com.lins.framework.http.HttpResult;
import com.lins.framework.mvpframe.base.BaseModel;
import com.lins.framework.mvpframe.base.BasePresenter;
import com.lins.framework.mvpframe.base.BaseView;

import java.util.ArrayList;

import rx.Observable;

/**
 * Created by Admin on 2017/3/14.
 */

public interface ProductListContract {
    interface Model extends BaseModel {
        Observable<HttpResult<ProductListBean>> getProductList(int catid);

        Observable<HttpResult<ArrayList<TopBannerBean>>> getTopBanner(int catid);
    }

    interface View extends BaseView {
        void setBtnText(ProductListBean bean);

        void setBannerData(ArrayList<TopBannerBean> mList);
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        abstract void getProductList(int catid);

        abstract void getTopBanner(int catid);
    }
}
